package com.example.extenddemo.extendsDemo;

import org.springframework.context.ApplicationEvent;
import java.time.Clock;

public class Demo1 extends ApplicationEvent {
    private String message;

    public Demo1(Object source,String message) {
        super(source);
        this.message = message;
    }

    public Demo1(Object source, Clock clock,String message) {
        super(source, clock);
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
